package com.superteam.zzl.app;

import android.app.Application;

import com.baidu.mapapi.SDKInitializer;
import android.content.Context;

import com.superteam.zzl.utils.DisplayUtils;
import com.superteam.zzl.utils.GreenDaoManager;

import cn.sharesdk.framework.ShareSDK;

/**
 * Created by zhang on 2017/1/6.
 */

public class MyApplication extends Application {
    public static boolean isLogin = false;//是否登录
    public static String search;//搜索框输入的内容

    public static Context context;

    @Override
    public void onCreate() {
        super.onCreate();
        GreenDaoManager.getInstance(this);//初始化GreenDao
        SDKInitializer.initialize(getApplicationContext());//初始化百度地图
        ShareSDK.initSDK(this);
        DisplayUtils.init(this);//初始化像素转换工具类
        context = getApplicationContext();
    }


}
